import { get, post } from '@/utils/request'

const BASE_URL = window.baseUrl.asset

// 分页查询
export function queryPageList(query) {
  return post(BASE_URL + '/assetsAll/list', query)
}
// 新增
export function addDatas(query) {
  return post(BASE_URL + '/assetsAll/add', query)
}
//编辑
export function editDatas(query) {
  return post(BASE_URL + '/assetsAll/edit', query)
}
//   批量删除
export function deleteDatas(ids) {
  return get(BASE_URL + '/assetsAll/deleteBatch', { ids })
}
// 详情
export function queryById(id) {
  return get(BASE_URL + '/assetsAll/queryById', { id })
}

// 字典集合
export function listAll(ids) {
  return get(BASE_URL + '/dictItems/listByTypes', { ids })
}
// 查询user
export function queryUserList(id) {
  return get(BASE_URL + '/assetsUser/list', { id })
}
